package com.ruoyi.game.controller;

import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.game.domain.bo.Pick3ReqBO;
import com.ruoyi.game.service.IGamePick3RecordService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import com.ruoyi.common.core.controller.BaseController;

/**
 * pick3开奖记录Controller
 * 
 * @author ruoyi
 * @date 2024-05-13
 */
@RestController
@RequestMapping("/app/game/pick3")
public class GamePick3RecordController extends BaseController
{
    @Autowired
    private IGamePick3RecordService gamePick3RecordService;

    /**
     * 分页查询
     * @param pageNo
     * @param pageSize
     * @return
     */
    @GetMapping("/page")
    public AjaxResult page(int pageNo,int pageSize,int timeLimit){
        return AjaxResult.success(gamePick3RecordService.page(pageNo,pageSize,timeLimit));
    }

    /**
     * 根据roundNo查询
     * @param roundNo
     * @return
     */
    @GetMapping("/findByRoundNo")
    public AjaxResult findByRoundNo(String roundNo){
        return AjaxResult.success(gamePick3RecordService.findByRoundNo(roundNo));
    }
}
